﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenTK.Graphics.OpenGL4;
namespace Common {
    public class Vao : GlDisposableObjectBase {
        public Vao() {
            Id=GL.GenVertexArray();
            GL.BindVertexArray(Id);
        }
        public int Id { get; private set; }
        protected override void OnDispose() {
            GL.DeleteVertexArray(Id);
        }
    }
}
